package buxfer;

import junit.framework.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

import java.util.concurrent.TimeUnit;

/**
 * Created with IntelliJ IDEA.
 * User: stem
 * Date: 18.11.13
 * Time: 20:43
 * To change this template use File | Settings | File Templates.
 */
public class menuUpgrade {
    private WebDriver driver;
    private By upgr= By.xpath("//div[@class=\"lF\"][contains(text(),'Upgrade Membership')]");
    menuUpgrade(WebDriver driver){
        this.driver=driver;
    }
    public void assertUpgrade(){
        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
        Assert.assertTrue(driver.findElement(upgr).isDisplayed());

    }
}
